﻿using System.Windows.Forms;

namespace PMngr.Main
{
    public partial class Approvals : UserControl
    {
        public Approvals()
        {
            InitializeComponent();
        }

        private void TabPageSingleEnter(object sender, System.EventArgs e)
        {
            InitializeControls();
        }

        private void TabPageWholeEnter(object sender, System.EventArgs e)
        {
            InitializeControls();
        }

        private void InitializeControls()
        {
            var tab = tabContainer.SelectedTab;
            var control = tab.Controls[0] as BaseControl;
            if (control != null)
                control.InitializeControls();
        }

    }
}
